package com.lagou.edu.mvcframework.filter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.*;
import java.io.IOException;

public class LaGouFilter implements Filter {
    Logger log=LoggerFactory.getLogger(LaGouFilter.class);
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        log.info("filter init");
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException {
        filterChain.doFilter(request,response);
    }

    @Override
    public void destroy() {
    log.info("filter destory");
    }
}
